#coding=utf-8
__author__ = 'rsg'

import tornado.ioloop
import tornado.web
import tornado.httpserver
import routes
import setup

if __name__ == "__main__":
    application = tornado.web.Application(
        routes.urls,
        **setup.settings
    )

    http_server = tornado.httpserver.HTTPServer(application)
    http_server.listen(8888)
    tornado.ioloop.IOLoop.instance().start()